package com.yxpweb.redisdao.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document(collection = "book")
@Data
@ToString
@AllArgsConstructor
public class Book {
    private String title;
    private String description;
    private String byUser;
    private String url;
    private List<String> tags;
    private int likes;
}
